package com.fhb.java.d20250609;


import org.junit.Test;

/**
 * @author abao
 * @Description TODO
 * @createTime 2025-06-09 13:37:00
 */
public class 自动拆箱装箱 {



    @Test
    public void test(){
        Integer num1 = 4; // 相当于Integer.valueOf(4)
        Integer num2 = 4;
        // true
        System.out.println(num1 == num2);


        num1 = 400; // 相当于Integer.valueOf(400)
        num2 = 400;
        // false
        System.out.println(num1 == num2);
    }

}
